package com.aliang.shopping.model.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 基本导出VO对象
 */
@Data
@ColumnWidth(20)
@ContentFontStyle
public class BasicExportVO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 数据ID
     */
    @ExcelProperty(value = "数据ID", order = 1)
    private Long id;
    /**
     * 状态，0禁用，1正常
     */
    @ExcelProperty("状态")
    private String status;

    /**
     * 创建时间
     */
    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;

}
